#include "arasterutils.h"

int ARSSRasterUtils::getBandCount(string filename)
{
	GDALDataset* ds = (GDALDataset*)GDALOpen(filename.c_str(), GA_ReadOnly);
	if (ds == 0) return 0;
	int nb = ds->GetRasterCount();
	GDALClose(ds);
	return nb;
}